package com.peas.platform.module.icims.expenditure.expenses.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 报账单明细(交通)
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_expenditure_reimbursement_traffic`")
public class ExpenditureReimbursementTrafficPo extends BasePo {

    // 报账单ID
    // （报账单表）外键
    @Comment(value = "报账单ID")
    @TableField(value = "`expenditure_reimbursement_id`", jdbcType = JdbcType.BIGINT)
    private Long expenditureReimbursementId;

    // 部门
    @Comment(value = "部门")
    @Size(max = 500, message = "部门不能超过500个字符")
    @TableField(value = "`traffic_department`", jdbcType = JdbcType.VARCHAR)
    private String trafficDepartment;

    // 日期
    @Comment(value = "日期")
    @TableField(value = "`traffic_date`", jdbcType = JdbcType.TIMESTAMP)
    private Date trafficDate;

    // 姓名
    @Comment(value = "姓名")
    @Size(max = 20, message = "姓名不能超过20个字符")
    @TableField(value = "`traffic_name`", jdbcType = JdbcType.VARCHAR)
    private String trafficName;

    // 事由
    @Comment(value = "事由")
    @Size(max = 1000, message = "事由不能超过1000个字符")
    @TableField(value = "`traffic_content`", jdbcType = JdbcType.VARCHAR)
    private String trafficContent;

    // 报销金额
    @Comment(value = "报销金额")
    @TableField(value = "`amount_car`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountCar;

}
